<?php 
/* 用来调试程序花费时间的 Timer类
*/
	Class Timer {
		private $starttime = 0;
		private $endtime = 0;

		function start() {
			$this->starttime = microtime(true);
		}

		function end() {
			$this->endtime = microtime(true);
		}

		function spend() {
			return $this->endtime - $this->starttime;
		}
	}
?>